# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=sidguesser
pkgver=1.0.5
pkgrel=5
groups=('blackarch' 'blackarch-cracker')
pkgdesc='Guesses sids/instances against an Oracle database according to a predefined dictionary file.'
url='http://www.cqure.net/wp/tools/database/sidguesser/'
arch=('x86_64' 'aarch64')
license=('GPL3')
source=("http://www.cqure.net/tools/SIDGuesser_src_${pkgver//./_}.zip")
sha512sums=('23088a8e6fce18dd1a5490ecee8abb7026040d652169363f0ade466cfa856e919676176d8bd6b53ab9762a7cdb580e5c6bbd656c6c9d54d229b1dfce453031d8')

build() {
  cd SIDGuesser

  chmod +x ./configure

  ./configure --prefix=/usr

  make
}

package() {
  cd SIDGuesser

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

